package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 意见反馈业务对象 p_suggest
 *
 * @author ruoyi
 * @date 2022-07-12
 */

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("意见反馈业务对象")
public class PSuggestBo extends BaseEntity {

    /**
     *
     */
    @ApiModelProperty(value = "", required = true)
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 留言
     */
    @ApiModelProperty(value = "留言", required = true)
    @NotBlank(message = "留言不能为空", groups = { AddGroup.class, EditGroup.class })
    private String msg;

    /**
     * 类型
     */
    @ApiModelProperty(value = "类型 ", required = true)
    @NotBlank(message = "类型 不能为空", groups = { AddGroup.class, EditGroup.class })
    private String type;

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id", required = true)
    private Long userId;

    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户")
    private String username;
}
